package com.atguigu.day211105.exer;

public class Graphic {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Graphic(String name) {
        this.name = name;
    }
    public double getArea(){
        return 0.0;
    }
    public double getPerimeter(){
        return 0.0;
    }
    public String getInfo(){
        return "名称:"+name+"面积:"+getArea()+"周长"+getPerimeter();
    }
}
